package com.example.daibanshiwu.pojo;

import java.util.Date;


public class MessageDetailDTO {

    // --- 来自主表 (t_message_main) ---
    private int messageId;

    private String id;

    private String title;

    private String transactionType;

    private String status;

    private String importance;

    private Date sendTime;

    private Date startTime;

    private Date endTime;

    private int senderUserId;

    // --- 来自用户表 (t_user) ---

    private String senderName; // 发送者姓名

    private String senderDepartment; // 发送者部门

    // --- 来自子表 (t_message_detail) ---
    private Boolean isTemplate;

    private String templateType;

    private String templateContent;

    private Date scheduledTime;

    // --- 来自文件表 (t_file) ---

    private String excelName;

    private String fileName;

    public MessageDetailDTO() {
    }

    public MessageDetailDTO(int messageId, String id, String title,
                            String transactionType, String status,
                            String importance, Date sendTime, Date startTime,
                            Date endTime, int senderUserId, String senderName,
                            String senderDepartment, Boolean isTemplate, String templateType,
                            String templateContent, Date scheduledTime, String excelName,
                            String fileName) {
        this.messageId = messageId;
        this.id = id;
        this.title = title;
        this.transactionType = transactionType;
        this.status = status;
        this.importance = importance;
        this.sendTime = sendTime;
        this.startTime = startTime;
        this.endTime = endTime;
        this.senderUserId = senderUserId;
        this.senderName = senderName;
        this.senderDepartment = senderDepartment;
        this.isTemplate = isTemplate;
        this.templateType = templateType;
        this.templateContent = templateContent;
        this.scheduledTime = scheduledTime;
        this.excelName = excelName;
        this.fileName = fileName;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getId() {
        return id;
    }

    public int getMessageId() {
        return messageId;
    }

    public String getTitle() {
        return title;
    }

    public String getTransactionType() {
        return transactionType;
    }

    public String getStatus() {
        return status;
    }

    public String getImportance() {
        return importance;
    }

    public Date getSendTime() {
        return sendTime;
    }

    public Date getStartTime() {
        return startTime;
    }

    public Date getEndTime() {
        return endTime;
    }

    public int getSenderUserId() {
        return senderUserId;
    }

    public String getSenderName() {
        return senderName;
    }

    public String getSenderDepartment() {
        return senderDepartment;
    }

    public Boolean getTemplate() {
        return isTemplate;
    }

    public String getTemplateType() {
        return templateType;
    }

    public String getTemplateContent() {
        return templateContent;
    }

    public Date getScheduledTime() {
        return scheduledTime;
    }

    public String getExcelName() {
        return excelName;
    }

    public String getFileName() {
        return fileName;
    }

    public void setMessageId(int messageId) {
        this.messageId = messageId;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public void setTransactionType(String transactionType) {
        this.transactionType = transactionType;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public void setImportance(String importance) {
        this.importance = importance;
    }

    public void setSendTime(Date sendTime) {
        this.sendTime = sendTime;
    }

    public void setStartTime(Date startTime) {
        this.startTime = startTime;
    }

    public void setEndTime(Date endTime) {
        this.endTime = endTime;
    }

    public void setSenderUserId(int senderUserId) {
        this.senderUserId = senderUserId;
    }

    public void setSenderName(String senderName) {
        this.senderName = senderName;
    }

    public void setSenderDepartment(String senderDepartment) {
        this.senderDepartment = senderDepartment;
    }

    public void setTemplate(Boolean template) {
        isTemplate = template;
    }

    public void setTemplateType(String templateType) {
        this.templateType = templateType;
    }

    public void setTemplateContent(String templateContent) {
        this.templateContent = templateContent;
    }

    public void setScheduledTime(Date scheduledTime) {
        this.scheduledTime = scheduledTime;
    }

    public void setExcelName(String excelName) {
        this.excelName = excelName;
    }

    public void setFileName(String fileName) {
        this.fileName = fileName;
    }

    @Override
    public String toString() {
        return "MessageDetailDTO{" +
                "messageId=" + messageId +
                ", title='" + title + '\'' +
                ", transactionType='" + transactionType + '\'' +
                ", status='" + status + '\'' +
                ", importance='" + importance + '\'' +
                ", sendTime=" + sendTime +
                ", startTime=" + startTime +
                ", endTime=" + endTime +
                ", senderUserId=" + senderUserId +
                ", senderName='" + senderName + '\'' +
                ", senderDepartment='" + senderDepartment + '\'' +
                ", isTemplate=" + isTemplate +
                ", templateType='" + templateType + '\'' +
                ", templateContent='" + templateContent + '\'' +
                ", scheduledTime=" + scheduledTime +
                ", excelName='" + excelName + '\'' +
                ", fileName='" + fileName + '\'' +
                '}';
    }
}
